package com.itheima.service;

import com.itheima.pojo.OrderSetting;
import com.itheima.pojo.OrderSettingDTO;
import com.itheima.pojo.OrderSettingUploadDTO;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletResponse;
import java.util.Date;

@Service
public interface OrederSettingService {
    /**
     * 根据日期修改可预约人数
     * @param orderSettingDTO
     */
    void updateByDate(OrderSettingDTO orderSettingDTO);

    /**
     * 根据日期获取对应数据
     * @param month
     * @return
     */
    OrderSetting getByMonth(Date month);

    /**
     * 模板下载
     * @param filename
     */
    void download(String filename);

    /**
     * 读取文件
     * @param upload
     */
    void upload(OrderSettingUploadDTO upload);
}
